<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>下载excel</title>
    <script type="text/javascript" src="static/js/jquery-3.3.1.js"></script>
</head>
<body>
    <button type="button" id="download">下载excel</button>
    <script>
        $(function () {
            $("#download").click(function () {
                window.location.href="downloadExcel.do"
            })
        })
    </script>
</body>
</html>